﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace IFIGame
{
    class Vie : Movable
    {

        public Vie(Game game)
            : base(game)
        {
            // TODO: Construct any child components here
        }

        public Vie(Game game, int _x, int _y, string _stringTexture)
            : base(game, _x, _y, _stringTexture)
        {
        }

        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            // TODO: Add your initialization code here

            base.Initialize();
        }

        public void disparaittre()
        {
            this.Dispose();
        }

        protected override void LoadContent()
        {
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {

            base.Update(gameTime);
        }

        public Rectangle toRectangle()
        {
            Rectangle rectangle = new Rectangle(x, y, texture.Width, texture.Height);
            return rectangle;
        }
    }
  
}
